package pers.ree.demo.base;

public class ThisDemo {

    public static void main(String[] args) {
        ThisDemo thisDemo = new ThisDemo();
        thisDemo.print();

        InnerClazz innerClazz = new ThisDemo().new InnerClazz();
        innerClazz.printThisType();
    }

    public void print() {
        Class c = this.getClass();
        System.out.println(c.getName());
    }

    public final void fm() {

    }

    class InnerClazz {
        public void printThisType() {
            System.out.println(ThisDemo.this.getClass().getName());
            System.out.println(this.getClass().getName());
        }
    }
}
